package org.cn.lennon.mybatis.executors;

import java.sql.SQLException;

import org.cn.lennon.mybatis.config.MapperStatment;
import org.cn.lennon.mybatis.transcation.DefaultTransaction;

public interface Executors extends DefaultTransaction{

	public <T> T query(MapperStatment mapperStatemnt, Object queryObject) throws SQLException;
	
	public <T> T query(MapperStatment mapperStatemnt, Object[] queryObjects) throws SQLException;
	
	public int update(MapperStatment mapperStatemnt, Object[] queryObjects) throws SQLException;
	
	public int insert(MapperStatment mapperStatemnt, Object[] queryObjects) throws SQLException;
	
	public int delete(MapperStatment mapperStatemnt, Object[] queryObjects) throws SQLException;
	
}
